package com.manner.groupon.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 商家表
 *
 * @TableName tb_store
 */
@TableName(value = "tb_store")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Store extends Object implements Serializable {

    /**
     * 序号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商家编号
     */
    @TableField(value = "store_no")
    private String storeNo;

    /**
     * 商家编号
     */
    @TableField(value = "admin_id")
    private Long adminId;

    /**
     * 商家名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 营业时间
     */
    @TableField(value = "hours")
    private String hours;

    /**
     * 门头照
     */
    @TableField(value = "img")
    private String img;

    /**
     * 门店地址
     */
    @TableField(value = "address")
    private String address;

    @TableField(value = "type_id")
    private Long typeId;

    /**
     * 经度
     */
    @TableField(value = "latitude")
    private Double latitude;

    /**
     * 维度
     */
    @TableField(value = "longitude")
    private Double longitude;

    /**
     * 标签
     */
    @TableField(value = "label")
    private String label;

    /**
     * 分润比例
     */
    @TableField(value = "scale")
    private Integer scale;

    @TableField(value = "status")
    private int status;

    /**
     * 访问人数
     */
    @TableField(value = "number_of_visitors")
    private Long numberOfVisitors;

    /**
     * 商家状态(0.关店 1.开店)
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private String createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private String updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}